<template>
	<view class="content">
		<view class="list" v-for="(item,i) in list" :key="item.router" @click="to(item.router)">
			<view class="msg">
				{{item.msg}}
			</view>
			<view class="icon">
				<uni-icons type="arrowright" size="15"></uni-icons>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "lxdt_list",
		props: ["list"],
		methods: {
			to(router) {
				console.log(router);
				uni.navigateTo({
					url: router
				});
			}
		}
	}
</script>

<style lang="less" scoped>
	.list:last-child {
		border-bottom: 1px #C0C4CC solid;
	}

	.list {
		color: #909399;
		border-top: 1px #C0C4CC solid;
		padding: 15rpx;

		.msg {
			display: inline-block;
		}

		.icon {
			float: right;
		}
	}
</style>
